const express = require('express');
const router = express.Router();
const partners_router=require('../router_handle/partners.js')
//发送伙伴邀请
router.post('/sendPartnerInvite', partners_router.sendPartnerInvite);
//获取伙伴信息
router.get('/getPartnerInfo', partners_router.getPartnerInfo);
//获取邀请信息
router.get('/getInviteInfo', partners_router.getInviteInfo);
//处理邀请
router.post('/handleInvite', partners_router.handleInvite);
//获取聊天信息
router.get('/getChatMessages', partners_router.getChatMessages);
//发送聊天信息
router.post('/sendChatMessage', partners_router.sendChatMessage);
//撤回聊天信息
router.post('/chatWithdraw', partners_router.chatWithdraw);
//删除伙伴
router.post('/deletePartner', partners_router.deletePartner);
module.exports = router;